#import "pairEvent.h"

@implementation PairEvent

-(id) initWithCommunicator:(id<ICECommunicator>)c
{
	[super initWithCommunicator:c];
	
	[self setMember:@"type" value:[self fromInt:PAIR_EVENT_TYPE]];
	[self setMember:@"x" value:[self fromFloat:0]];
	[self setMember:@"y" value:[self fromFloat:0]];
	
	return self;
}

-(void) setX:(float)x
{
	[self setMember:@"x" value:[self fromFloat:x]];
}

-(float) x
{
	return [self interpretFloat:[self memberValue:@"x"]];
}

-(void) setY:(float)y
{
	[self setMember:@"y" value:[self fromFloat:y]];
}

-(float) y
{
	return [self interpretFloat:[self memberValue:@"y"]];
}

@end
